package EveryDayPractice;

public class Practice33 {
     public static void main(String[] args) {
         //杨辉三角
         int[][] a=new int[10][10];
     for (int i = 0; i < 10; i++) {
         a[i][0]=1;
         for(int k=1;k<10-i;k++){
             System.out.print(" ");
         }
         System.out.print(a[i][0]);
         for (int j = 1; j <=i; j++) {
             a[i][j]=a[i-1][j-1]+a[i-1][j];
             System.out.print(" "+a[i][j]);
         }
         System.out.println();
     }

     }
}
